package hg.demo.ehcache.service;

import hg.demo.ehcache.bean.UserBean;
import org.springframework.cache.annotation.CacheConfig;

@CacheConfig(cacheNames = "user")
public interface UserService {

    UserBean query(String name);

    void insert(UserBean user);

    void update(UserBean user);

    UserBean queryByCache(String name);
}
